Step 1: Modify class for a selected security type in <IRON SPEED DESIGNER>\BaseClasses\Utils\ In particular, you may need to modify these methods:
Defined in ISecurity Interface and implemented in ActiveDirectorySecurity.vb, RoleBasedSecurity.vb, WindowsSecurity.vb, NoneSecurity.vb classes:
Function ValidateCurrentUser(ByVal appRoles As String) As SecurityControls.ValidationResults
Function SetLoginInfo(ByVal userName As String, ByVal userPassword As String, ByRef errorMessage As String) As Boolean
Sub Logout(ByVal page As BaseClasses.Web.UI.BasePage)
Function GetUserStatus() As String
Function SetUser() As Boolean
Defined in SecurityControls Class:
Public Shared Function IsUserInRole(ByVal context As HttpContext, ByVal appRolesLst As System.Collections.IList) As Boolean
Public Shared Function GetCurrentUserRoles() As String
Public Shared Function GetCurrentUserName() As String
Public Shared Function GetCurrentUserID() As String
Public Shared Sub SetCurrentUserName(ByVal usrName As String)
Public Shared Sub SetCurrentUserID(ByVal usrID As String)
Public Shared Sub SetCurrentUserRoles(ByVal usrRoles As String)
Public Shared Function GetUserRecord(Optional ByVal userID As String = "") As IUserIdentityRecord
Defined in IRolesManagement interface located in BaseClasses\Base\BaseInterfaces.vb and implemented in ActiveDirectoryGroups.vb, AzManRoles.vb, ProprietoryRoles.vb, NoneRoles.vb classes:
Function GetUserRoles(ByVal user As String, ByVal password As String, ByVal providerCS As String, ByVal domains() As String) As String
Step 2: Recompile BaseClasses.DLL using the modified BaseClasses source code.
Step 3: Copy the new BaseClasses.DLL (and BaseClasses.PDB if present) into your application's Bin directory. Your application now has customized authentication.
|